export default (safe) => {
    return {
        dialogClickModal:false,
        border: false,
        index: false,
        indexLabel: '序号',
        stripe: true,
        menuAlign: 'center',
        searchMenuSpan: 6,
        align: 'center',
        addBtnText: '新增属性',
        column: [
          {
            width: 180,
            label: '属性标识',
            prop: 'code',
            span: 24,
            editDisabled: true,
            rules: [
            { required: true, message: '请输入属性标识', trigger: 'blur'}
            ]
        },
          {
            label: '属性名称',
            prop: 'name',
            span: 24
        }, 
        {
            width: 120,
            label: '数据类型',
            type: 'select',
            prop: 'valueType',
            span: 24,
            dicData: [{
              label: '布尔',
              value: 'Boolean'
            }, {
              label: '字符串',
              value: 'String'
            },
            {
              label: '长整型',
              value: 'Long'
            },
            {
              label: '整型',
              value: 'Integer'
            },
            {
              label: '小数',
              value: 'BigDecimal'
            }],
            rules: [
              { required: true, message: '请选择数据类型', trigger: 'change' },
            ],
        }, 
        {
          width: 120,
          label: '是否只读',
          type: 'select',
          prop: 'readOnly',
          span: 24,
          dicData: [{
            label: '是',
            value: true
          }, {
            label: '否',
            value: false
          }],
          rules: [
            { required: true, message: '请选择是否只读', trigger: 'change' },
            ]
      },
        {
            width: 150,
            label: '描述',
            prop: 'description',
            overHidden: true,
            hide: true,
            type: 'textarea',
            span: 24,
            row: true
        }]
    }
}
